package com.xoa.service.schoolHealthy;

import com.xoa.model.easyReport.RepReport;
import com.xoa.model.schoolHealthy.RepHealthyInfoWithBLOBs;
import com.xoa.util.ToJson;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface HealthyInfoService {

    ToJson<RepHealthyInfoWithBLOBs> insertHealthyInfo(HttpServletRequest request ,RepHealthyInfoWithBLOBs repHealthyInfoWithBLOBs);

    ToJson<RepHealthyInfoWithBLOBs> findHealthyInfoById(HttpServletRequest request,Integer healId);

    ToJson<RepHealthyInfoWithBLOBs> updateHealthyInfo(RepHealthyInfoWithBLOBs repHealthyInfoWithBLOBs);

    ToJson<RepHealthyInfoWithBLOBs> deleteHealthyInfo(Integer healId);

    ToJson<RepHealthyInfoWithBLOBs> findHealthyInfo(HttpServletRequest request ,String keyWork,String schoolManageType,String createTime,RepHealthyInfoWithBLOBs repHealthyInfoWithBLOBs,Integer limit,Integer page);

    ToJson<RepHealthyInfoWithBLOBs> getCondition(HttpServletRequest request,String type,RepHealthyInfoWithBLOBs repHealthyInfoWithBLOBs ,boolean bol);

    ToJson<RepHealthyInfoWithBLOBs> statisticsInfoType(HttpServletRequest request ,HttpServletResponse response,String schoolType,String createTime,String schoolManageType,String statePrivateId ,String liveStreet,String groupBy,String schoolName,boolean isExport);

    ToJson<RepHealthyInfoWithBLOBs> chartAnalysis(String type,String stateTime ,String endTime ,String fieldType,String groupBy,String schoolType ,String schoolManageType,String statePrivateId,String liveStreet);

    ToJson<RepReport> getSchool(HttpServletRequest request);

    ToJson<RepHealthyInfoWithBLOBs> ImportHealthyInfo(HttpServletRequest request, MultipartFile file);

    ToJson ExportHealthyInfo(HttpServletRequest request, HttpServletResponse response, String keyWork,String schoolManageType,
                             String staReturnTime, String endReturnTime, String staExpectReturnTime, String endExpectReturnTime,
                             RepHealthyInfoWithBLOBs repHealthyInfoWithBLOBs);

    ToJson ImportEducationBureau(HttpServletRequest request, MultipartFile file,String fillDate);

    ToJson isEducationBureau(HttpServletRequest request);

    ToJson BacktoShanghai(HttpServletRequest request, String time);

    ToJson liveanaly(HttpServletRequest request, String time);

    ToJson HealthManagement(HttpServletRequest request, String time);

    ToJson AnalysisOfOrigin(HttpServletRequest request, String time);

    ToJson ImportNumDept(HttpServletRequest request, HttpServletResponse response, MultipartFile file);
}
